const usePsyUserStore = defineStore(
    'psyUser',
    () => {
        /**
         * 当前用户信息
         */
        const userInfo = ref({
            uid: '12345678',
            username: '不是为谁而作的歌',
            avatar: 'https://cravatar.cn/avatar/e1e7ba949ade0936e071132d2edd3b3c?s=400',
            gender: '男',
            educationLevel: '本科',
            birthday: '1998-01-01',
        })
        /**
         * 正在进行中的测试列表
         */
        const underwayList = ref([
            {
                id: 1,
                img: "https://psystatic.fenxapp.com/uploads/0/1/240110/7946df0e7e9d148d04f13e0b9edb8e3f.png?x-oss-process=image/auto-orient,1/interlace,1/resize,m_lfit,w_84",
                name: "MBTI人格测试（48题）",
                startTime: "7-13 19:47",
                progressPercentage: 0.5,
            },
            {
                id: 2,
                img: "https://psystatic.fenxapp.com/uploads/0/1/240624/4b8df10c1ef590932e7a95851fbd39c9.jpg?x-oss-process=image/auto-orient,1/interlace,1/resize,m_lfit,w_84",
                name: "自恋人格量表",
                startTime: "7-15 10:49",
                progressPercentage: 0.8,
            }
        ]);

        /**
         * 获取用户信息
         */
        function getUserInfo() {
            // 等待 api
        }

        return {
            userInfo,
            underwayList,
            getUserInfo
        }
    }
)

export default usePsyUserStore